import App from './App'
import Vue from 'vue'
import VueRouter from 'vue-router'

import Vant from 'vant';
import 'vant/lib/index.css';
import '@vant/touch-emulator';

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import context from './server/context';
import sql from './server/sql';
import router from './routes';
import store from './store'
import SingleLine from './sub/SingleLine.vue'

Vue.prototype.$console = console.log;
Vue.config.productionTip = false
Vue.use(ElementUI,{ size: 'small', zIndex: 3000 });
Vue.use(Vant);
Vue.use(VueRouter);
Vue.component("SingleLine",SingleLine)

context.contextInit();
sql.initDbAndCollection(); //初始化数据库

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
});